package com.gopay.common.domain.dataextract;

// Generated 2013-1-9 11:31:56 by Hibernate Tools 3.4.0.Beta1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

import com.gopay.common.constants.cps.RefundFlag;

/**
 * CpsGenPayOrder generated by hbm2java
 */
@Entity
@Table(name = "AGENTS_CPS_GEN_PAY_ORDER")
public class AgentsCpsGenPayOrder implements java.io.Serializable {
    private static final long serialVersionUID = 79558459665807316L;
    private String gopayOrderId;
    private int version;
    private String merOrderSq;
    private BigDecimal totalRefundFeeAmt;
    private BigDecimal totalRefundAmt;
    private BigDecimal orderBankFeeAmt;
    private RefundFlag isRefund;
    private String recvPbocBankCode;
    private String recvBankName;
    private String recvBankBranchName;
    private String recvBankAcctName;
    private String recvBankAcctNum;
    private String recvBankProvinceCode;
    private String recvBankProvinceName;
    private String recvBankCityCode;
    private String recvBankCityName;
    private String recvBankPbocNum;
    private String bcFlag;
    private String gopayBankOrderno;
    private Date createdTs;
    private Date lastUpdTs;
    private String lastUpdTrancode;
    private String remark1;
    private String remark2;
    
    private int settlementCycle;
    private Date settlementTs;
    
    private String offLineBankCode;
    private String offLineBankOrderNum;
    
    private String autoSettle;
    private String ruleId;    
    private String manualSettleLaunchOper;
    private Date manualSettleLaunchTime;
    private String manualUpdateStatOper;
    private Date manualUpdateStatTime;
    private String payStat;
    private Date autoSettleLaunchTime;
    private Date custAuditTime;
    
    private String onlineRelaunchFlag;
    private String bcdlReturnMsg;
    private String stlmEx;

    @Id
    @Column(name = "GOPAY_ORDER_ID", unique = true, nullable = false, length = 30)
    public String getGopayOrderId() {
        return this.gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public int getVersion() {
        return this.version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Column(name = "MER_ORDER_SQ", nullable = false)
    public String getMerOrderSq() {
        return this.merOrderSq;
    }

    public void setMerOrderSq(String merOrderSq) {
        this.merOrderSq = merOrderSq;
    }

    @Column(name = "TOTAL_REFUND_FEE_AMT", nullable = false, precision = 20)
    public BigDecimal getTotalRefundFeeAmt() {
        return this.totalRefundFeeAmt;
    }

    public void setTotalRefundFeeAmt(BigDecimal totalRefundFeeAmt) {
        this.totalRefundFeeAmt = totalRefundFeeAmt;
    }

    @Column(name = "TOTAL_REFUND_AMT", nullable = false, precision = 20)
    public BigDecimal getTotalRefundAmt() {
        return this.totalRefundAmt;
    }

    public void setTotalRefundAmt(BigDecimal totalRefundAmt) {
        this.totalRefundAmt = totalRefundAmt;
    }

    @Column(name = "ORDER_BANK_FEE_AMT", nullable = false, precision = 20)
    public BigDecimal getOrderBankFeeAmt() {
        return this.orderBankFeeAmt;
    }

    public void setOrderBankFeeAmt(BigDecimal orderBankFeeAmt) {
        this.orderBankFeeAmt = orderBankFeeAmt;
    }

    @Column(name = "IS_REFUND", nullable = false, precision = 22, scale = 0)
    @Enumerated(EnumType.ORDINAL)
    public RefundFlag getIsRefund() {
        return this.isRefund;
    }

    public void setIsRefund(RefundFlag isRefund) {
        this.isRefund = isRefund;
    }

    @Column(name = "RECV_PBOC_BANK_CODE", length = 10)
    public String getRecvPbocBankCode() {
        return this.recvPbocBankCode;
    }

    public void setRecvPbocBankCode(String recvPbocBankCode) {
        this.recvPbocBankCode = recvPbocBankCode;
    }

    @Column(name = "RECV_BANK_NAME", length = 50)
    public String getRecvBankName() {
        return this.recvBankName;
    }

    public void setRecvBankName(String recvBankName) {
        this.recvBankName = recvBankName;
    }

    @Column(name = "RECV_BANK_BRANCH_NAME", length = 210)
    public String getRecvBankBranchName() {
        return this.recvBankBranchName;
    }

    public void setRecvBankBranchName(String recvBankBranchName) {
        this.recvBankBranchName = recvBankBranchName;
    }

    @Column(name = "RECV_BANK_ACCT_NAME", length = 110)
    public String getRecvBankAcctName() {
        return this.recvBankAcctName;
    }

    public void setRecvBankAcctName(String recvBankAcctName) {
        this.recvBankAcctName = recvBankAcctName;
    }

    @Column(name = "RECV_BANK_ACCT_NUM", length = 30)
    public String getRecvBankAcctNum() {
        return this.recvBankAcctNum;
    }

    public void setRecvBankAcctNum(String recvBankAcctNum) {
        this.recvBankAcctNum = recvBankAcctNum;
    }

    @Column(name = "RECV_BANK_PROVINCE_CODE", length = 10)
    public String getRecvBankProvinceCode() {
        return this.recvBankProvinceCode;
    }

    public void setRecvBankProvinceCode(String recvBankProvinceCode) {
        this.recvBankProvinceCode = recvBankProvinceCode;
    }

    @Column(name = "RECV_BANK_PROVINCE_NAME", length = 20)
    public String getRecvBankProvinceName() {
        return this.recvBankProvinceName;
    }

    public void setRecvBankProvinceName(String recvBankProvinceName) {
        this.recvBankProvinceName = recvBankProvinceName;
    }

    @Column(name = "RECV_BANK_CITY_CODE", length = 20)
    public String getRecvBankCityCode() {
        return this.recvBankCityCode;
    }

    public void setRecvBankCityCode(String recvBankCityCode) {
        this.recvBankCityCode = recvBankCityCode;
    }

    @Column(name = "RECV_BANK_CITY_NAME", length = 20)
    public String getRecvBankCityName() {
        return this.recvBankCityName;
    }

    public void setRecvBankCityName(String recvBankCityName) {
        this.recvBankCityName = recvBankCityName;
    }

    @Column(name = "RECV_BANK_PBOC_NUM", length = 32)
    public String getRecvBankPbocNum() {
        return this.recvBankPbocNum;
    }

    public void setRecvBankPbocNum(String recvBankPbocNum) {
        this.recvBankPbocNum = recvBankPbocNum;
    }

    @Column(name = "BC_FLAG", precision = 1, scale = 0)
    public String getBcFlag() {
        return this.bcFlag;
    }

    public void setBcFlag(String bcFlag) {
        this.bcFlag = bcFlag;
    }

    @Column(name = "GOPAY_BANK_ORDERNO", length = 50)
    public String getGopayBankOrderno() {
        return this.gopayBankOrderno;
    }

    public void setGopayBankOrderno(String gopayBankOrderno) {
        this.gopayBankOrderno = gopayBankOrderno;
    }

    @Column(name = "CREATED_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "LAST_UPD_TRANCODE", length = 6)
    public String getLastUpdTrancode() {
        return this.lastUpdTrancode;
    }

    public void setLastUpdTrancode(String lastUpdTrancode) {
        this.lastUpdTrancode = lastUpdTrancode;
    }

    @Column(name = "REMARK1", length = 400)
    public String getRemark1() {
        return this.remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    @Column(name = "REMARK2", length = 400)
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }
    
    @Column(name = "OFFLINE_GOPAY_BANK_CODE", length = 15)
	public String getOffLineBankCode() {
		return offLineBankCode;
	}

	public void setOffLineBankCode(String offLineBankCode) {
		this.offLineBankCode = offLineBankCode;
	}

	@Column(name = "OFFLINE_BANK_ORDER_NUM", length = 50)
	public String getOffLineBankOrderNum() {
		return offLineBankOrderNum;
	}

	public void setOffLineBankOrderNum(String offLineBankOrderNum) {
		this.offLineBankOrderNum = offLineBankOrderNum;
	}

	@Column(name = "SETTLEMENT_CYCLE", precision = 22, scale = 0)
    public int getSettlementCycle() {
        return settlementCycle;
    }

    public void setSettlementCycle(int settlementCycle) {
        this.settlementCycle = settlementCycle;
    }
    
    @Column(name = "SETTLEMENT_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getSettlementTs() {
        return settlementTs;
    }

    public void setSettlementTs(Date settlementTs) {
        this.settlementTs = settlementTs;
    }

    @Column(name="RULE_ID", length = 12)
    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }
    
    @Column(name="AUTO_SETTLE", length=1)
    public String getAutoSettle() {
        return autoSettle;
    }

    public void setAutoSettle(String autoSettle) {
        this.autoSettle = autoSettle;
    }

    

    @Column(name="MANUAL_SETTLE_LAUNCH_OPER", length=10)
    public String getManualSettleLaunchOper() {
        return manualSettleLaunchOper;
    }

    public void setManualSettleLaunchOper(String manualSettleLaunchOper) {
        this.manualSettleLaunchOper = manualSettleLaunchOper;
    }

    @Column(name = "MANUAL_SETTLE_LAUNCH_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getManualSettleLaunchTime() {
        return manualSettleLaunchTime;
    }

    public void setManualSettleLaunchTime(Date manualSettleLaunchTime) {
        this.manualSettleLaunchTime = manualSettleLaunchTime;
    }

    @Column(name="MANUAL_UPDATE_STAT_OPER", length=10)
    public String getManualUpdateStatOper() {
        return manualUpdateStatOper;
    }

    public void setManualUpdateStatOper(String manualUpdateStatOper) {
        this.manualUpdateStatOper = manualUpdateStatOper;
    }

    @Column(name = "MANUAL_UPDATE_STAT_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getManualUpdateStatTime() {
        return manualUpdateStatTime;
    }

    public void setManualUpdateStatTime(Date manualUpdateStatTime) {
        this.manualUpdateStatTime = manualUpdateStatTime;
    }

    @Column(name="PAY_STAT", length=10)
    public String getPayStat() {
        return payStat;
    }

    public void setPayStat(String payStat) {
        this.payStat = payStat;
    }

    @Column(name = "AUTO_SETTLE_LAUNCH_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getAutoSettleLaunchTime() {
        return autoSettleLaunchTime;
    }

    public void setAutoSettleLaunchTime(Date autoSettleLaunchTime) {
        this.autoSettleLaunchTime = autoSettleLaunchTime;
    }

    @Column(name = "CUST_AUDIT_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCustAuditTime() {
        return custAuditTime;
    }

    public void setCustAuditTime(Date custAuditTime) {
        this.custAuditTime = custAuditTime;
    }

    @Column(name="ONLINE_RELAUNCH_FLAG", length=1)
	public String getOnlineRelaunchFlag() {
		return onlineRelaunchFlag;
	}

	public void setOnlineRelaunchFlag(String onlineRelaunchFlag) {
		this.onlineRelaunchFlag = onlineRelaunchFlag;
	}

	@Column(name = "BCDL_RETURN_MSG", length = 400)
	public String getBcdlReturnMsg() {
		return bcdlReturnMsg;
	}

	public void setBcdlReturnMsg(String bcdlReturnMsg) {
		this.bcdlReturnMsg = bcdlReturnMsg;
	}
	@Column(name = "STLM_EX", length = 10)
	public String getStlmEx() {
		return stlmEx;
	}

	public void setStlmEx(String stlmEx) {
		this.stlmEx = stlmEx;
	}

    
    
    

}
